\hypertarget{commK_8h}{
\section{atmega1281/mid/include/commK.h File Reference}
\label{commK_8h}\index{atmega1281/mid/include/commK.h@{atmega1281/mid/include/commK.h}}
}
{\ttfamily \#include $<$stdint.h$>$}\par
\subsection*{Data Structures}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structstream}{stream}
\begin{DoxyCompactList}\small\item\em Structure for defining the stream data. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Defines}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{group__nxbot__commK_ga782d8d9b5e3ede5a7ca9bd88df3c68f0}{COMMK\_\-DATASIZE}~40
\begin{DoxyCompactList}\small\item\em Max. Size of data in stream. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__commK_gaf5585ddbb22b8bdd9a3aea2bdad05de1}{COMMK\_\-EXTRAFIELDS}~3
\begin{DoxyCompactList}\small\item\em Number of extra fields included in the stream. \item\end{DoxyCompactList}\item 
\#define \hyperlink{group__nxbot__commK_ga23e0a68452196a321b55f7711fb4e13a}{TX\_\-STREAM\_\-OK}~0
\begin{DoxyCompactList}\small\item\em Flag indicating that the stream has been transmitted. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{group__nxbot__commK_ga2cd6d5b2d41e59393ca658d6494469fd}{comm\_\-init} (unsigned int baudrate, unsigned char format, unsigned char usart)
\begin{DoxyCompactList}\small\item\em Initialization of communiication hardware. \item\end{DoxyCompactList}\item 
unsigned char \hyperlink{group__nxbot__commK_ga7107d874f14ed410bec1e5ed5ba70046}{comm\_\-transmit} (\hyperlink{structstream}{stream} $\ast$txStream, uint8\_\-t usart)
\begin{DoxyCompactList}\small\item\em Transmit a stream via the selected uart. \item\end{DoxyCompactList}\item 
unsigned char \hyperlink{group__nxbot__commK_gac45e24bbf01332b2f75b3635aec2eb62}{comm\_\-receive} (\hyperlink{structstream}{stream} $\ast$rxStream, uint8\_\-t usart)
\begin{DoxyCompactList}\small\item\em Receive a stream via the selected uart. \item\end{DoxyCompactList}\end{DoxyCompactItemize}
